﻿<Page x:Class="SqlInspectorPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SQL Inspector" AllowDrop="True">
    <DockPanel Name="DockPanel1" Style="{StaticResource AppFont}">
        <TextBlock Style="{StaticResource PageTitle}" DockPanel.Dock="Top">SQL Inspector</TextBlock>

        <Grid Style="{StaticResource AppFont}" AllowDrop="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200"/>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="50"/>
            </Grid.RowDefinitions>

            <ListBox Grid.Column="0" Grid.Row="0" MinHeight="300" Name="lbxCommands" Style="{StaticResource SqlInspectorItemFont}"/>

            <StackPanel Orientation="Horizontal" Grid.Column ="0" Grid.Row="1" Grid.ColumnSpan="3"  >
                <Button Margin="70,10,10,10" Name="btnClear">Clear</Button>
            </StackPanel>

            <GridSplitter Grid.Column="1"
              HorizontalAlignment="Center"
              VerticalAlignment="Stretch"
              ShowsPreview="True"
              Width="5"/>

            <DockPanel Grid.Column="2" AllowDrop="True">

                <TextBox DockPanel.Dock="Top" Name="txtMessage" Style="{StaticResource AppFont}"></TextBox>
                <RichTextBox MinWidth="300">
                    <FlowDocument Style="{StaticResource SqlFont}" Background="White">
                        <Paragraph Name="txtSQL">
                            sql goes here
                            <LineBreak/>
                            sql goes there
                        </Paragraph>
                    </FlowDocument>
                </RichTextBox>
            </DockPanel>
        </Grid>
    </DockPanel>
</Page>
